FROM openjdk:8-jre

MAINTAINER liuyunfeng@crf-tech.com

ENV SPRING_PROFILE prod

RUN mkdir -p /opt/cp

WORKDIR /opt/cp

EXPOSE 8081

ADD ship-ai-edge.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]

CMD ["--spring.profiles.active=${SPRING_PROFILE}"]

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone